import request from '@/router/axios';

// 获取列表
export const getMaterialGroupInfoList = (current, size, params) => {
  return request({
    url: '/api/blade-purchase/materialgroupinfo/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


// 删除
export const remove = (ids) => {
  return request({
    url: '/api/blade-purchase/topictype/remove',
    method: 'post',
    params: {
      ids
    }
  })
}

// 保存
export const save = (data) => {
  return request({
    url: '/api/blade-purchase/materialgroupinfo/updateProGroup',
    method: 'post',
    data: data
  })
}
// 同步物料组
export const syncMaterialGroupInfo = () => {
  return request({
    url: '/api/blade-purchase/materialgroupinfo/sysnch',
    method: 'get'
  })
}

// 专业组列表
export const getProGroupNoList = () => {
  return request({
    url: '/api/blade-purchase/materialgroupinfo/proGroupNoList',
    method: 'get'
  })
}
